/**
 * @author Maximilian Csuk
 * @author Konrad Paumann
 * @author Bernhard Denner
 */

public class Int2Float extends SingOp{
	
	public Int2Float(Node n) {
		super(n);
	}
	/**
	 * Returns the result of the evaluation
	 */
	public Number eval() {
		Number x = super.getChild().eval(); 
		
		if (x instanceof MyInteger) {
			return new MyFloat((float)((MyInteger)x).getValue());
		} else
			return new NotaNumber();
	}
}
